package web.login.bo;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import web.login.dao.LoginDao;
import web.login.entity.Login;

@Service(value="newUserAjaxBo")
public class NewUserAjaxBo {

	private final Log log = LogFactory.getLog(NewUserAjaxBo.class);
			
	@Autowired
	private LoginDao loginDao;

	public LoginDao getLoginDao() {
		return loginDao;
	}

	public void setLoginDao(LoginDao loginDao) {
		this.loginDao = loginDao;
	}
	
	public void createUser(Login login)
	{
		log.info("INSIDE NewUserAjaxBo.createUser method");
		this.loginDao.saveLogin(login);
	}
	
}
